package com.kh.samr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;

/**
 * 分页查询参数Dto
 *
 * @author Harry
 * @date 2020/12/18
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "分页查询参数Dto")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ParamPageDto extends AccessKeySecretDto {
	
	private static final long serialVersionUID = 2611047616572310432L;
	
	/**
	 * 页数
	 */
	@ApiModelProperty(value = "页数", example = "1")
	@Min(value = 1, message = "页数不能小于{value}")
	private int pageNum;
	
	/**
	 * 每页条数
	 */
	@ApiModelProperty(value = "每页条数", readOnly = true)
	private int pageSize = 50;
}
